import {
  HTTP
}
from '../utils/http.js';

import {
  config
}
from '../config/config.js';

class CatalogModel extends HTTP {
  data = null;
  getCatalog() {
    return this.request({
      url: config.CatalogList
    })
  }

  getCurrentCategory(p_id) {
    return this.request({
      url: config.CatalogCurrent,
      data: {
        id: p_id
      }
    })
  }
}

export {
  CatalogModel
}
